/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package rentalmobil.testing;

import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import rentalmobil.entity.kembali_mobil;

/**
 *
 * @author Henfryandie
 */
public class testingKembaliMobil {
    public static void main(String[] args) throws SQLException {
        kembali_mobil km = new kembali_mobil();
        List<kembali_mobil> listOut = new ArrayList<kembali_mobil>();
        listOut = km.tampilKembaliMobil();
        System.out.println("Jumlah Data : "+listOut.size());
        for (int i = 0; i < listOut.size(); i++) {
            System.out.println("no Kembali : "+listOut.get(i).getNo_kembali()+" no Sewa : "+listOut.get(i).getNo_sewa()+" No Plat Mobil :"+listOut.get(i).getNo_plat_mobil()+" Tanggal Sewa : "+listOut.get(i).getTanggalSewa());
        }

    }
}
